from .models import Posts,Comment,Goods
from rest_framework.serializers import ModelSerializer

class PostsSer(ModelSerializer):
    class Meta:
        model = Posts
        fields = ['title','content','like_nums','collect_nums','uid ','type','create_time']

class GoodsSer(ModelSerializer):
    class Meta:
        model = Goods
        fields = "__all__"
